import { lazy } from "react";
import { createBrowserRouter } from 'react-router-dom'

const Home = lazy(() => import('../parge/Home/Home'))
const List = lazy(() => import('../parge/List/List'))
const Type = lazy(() => import('../parge/type/type'))


const router = createBrowserRouter([
    {
        path: '/',
        element: <Home></Home>
    },
    {
        path: '/list',
        element: <List></List>
    },
    {
        path: '/type/:type',
        element: <Type></Type>
    }
])

export default router